package com.hangxin.commons.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hangxin.commons.dao.SysAccessoryDao;
import com.hangxin.commons.service.SysAccessoryService;
/**
 * 
 * 类名称：SysAccessoryServiceImpl.java
 * <P/>
 * 类描述： 无
 * <P/>
 * 创建时间：2014年5月15日
 * <P/>
 * 创建人： 杨春豪
 * <P/>
 * 联系方式： 550813852@qq.com
 * <P/>
 * 修改人：无
 * <P/>
 * 修改时间：无
 * <P/>
 * 修改备注：无
 * <P/>
 * 版本：v1.0
 *
 */
@Service
public class SysAccessoryServiceImpl extends BasicServiceImpl implements
		SysAccessoryService {
   @Resource
   private SysAccessoryDao sysAccessoryDaoImpl;
	
	@Override
	public List<Map<String, Object>> findAllSysAccessory(String type, Integer id) {
       Object[] params = new Object[]{type,id};
		return sysAccessoryDaoImpl.findAllSysAccessory(params);
	}

	@Override
	public Integer saveSysAccessories01(String id, String filetype,
			String filepath, String filename, String serflme) {
		Object[] params = new Object[] { id,filetype,filepath, filename, serflme};
		return sysAccessoryDaoImpl.saveSysAccessories01(params);
	}

	@Override
	public Integer delSysAccessories(String id) {
        Object[] params = new Object[]{id};
		return sysAccessoryDaoImpl.delSysAccessories(params);
	}
	@Override
    public List<Map<String,Object>> getNewTopic(){
		Object[] params = new Object[]{};
		return sysAccessoryDaoImpl.getNewTopic(params);
	}

}
